#include <xp/net/inet.h>
#include <xp/bas/stdio.h>

int xp_main ()
{
	xp_char_t buf[20];
	//xp_uint32_t x =  0x1023407F;
	//xp_uint32_t x =  0x00000000;
	//xp_uint32_t x =  0x12345678;
	xp_uint32_t x =  0xFFFFFFFF;
	xp_size_t n;
	int i;
	
	for (i = 1; i < xp_countof(buf); i++) {
		n = xp_inet4_iptostrx (x, buf, i);
		xp_printf (XP_TEXT("%d, %u [%s] [%S]\n"), i, (unsigned)n, buf, inet_ntoa(x));
	}
	return 0;
}

